package com.jzo2o.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.AgencyCertification;
import com.jzo2o.customer.model.dto.AgencyCertificationUpdateDTO;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.response.AgencyCertificationAuditResDTO;

/**
 * <p>
 * 机构认证信息表 服务类
 * </p>
 *
 * @author itcast
 * @since 2023-09-06
 */
public interface IAgencyCertificationService extends IService<AgencyCertification> {


    /**
     * 根据机构id更新
     *
     * @param agencyCertificationUpdateDTO 机构认证更新模型
     */
    void updateByServeProviderId(AgencyCertificationUpdateDTO agencyCertificationUpdateDTO);


    /**
     * 机构认证申请
     * @param dto
     */
    void submitCertificationAudit(AgencyCertificationAuditAddReqDTO dto);

    /**
     * 机构认证分页查询
     * @param dto
     * @return
     */
    PageResult<AgencyCertificationAuditResDTO> getPage(AgencyCertificationAuditPageQueryReqDTO dto);

    /**
     * 机构认证审核
     * @param id
     * @param certificationStatus
     * @param rejectReason
     */
    void review(Long id, Integer certificationStatus, String rejectReason);

    /**
     * 获取机构认证审核驳回原因
     * @return
     */
    AgencyCertificationAuditResDTO showRejectReason();
}
